package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户封号记录
 * </p>
 *
 * @author Shane
 * @since 2020-08-04
 */
@TableName("user_seal_log")
public class UserSealLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 封号时间，单位小时，0表示永久封禁
	 */
	@TableField(value = "`hour`")
	private Integer hour;

	/**
	 * 理由
	 */
	private String reason;

	/**
	 * 状态，0-未解禁  1-已解禁
	 */
	@TableField(value = "`status`")
	private Integer status;

	/**
	 * 操作人员id
	 */
	@TableField(value="audit_user_id")
	private Integer auditUserId;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public UserSealLog() {
	}

	public UserSealLog(Integer userId, Integer hour, String reason, Integer status, Integer auditUserId) {
		this.userId = userId;
		this.hour = hour;
		this.reason = reason;
		this.status = status;
		this.auditUserId = auditUserId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getHour() {
		return hour;
	}

	public void setHour(Integer hour) {
		this.hour = hour;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getAuditUserId() {
		return auditUserId;
	}

	public void setAuditUserId(Integer auditUserId) {
		this.auditUserId = auditUserId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
